How to // Comment
Custom www folder // Personnaliser le dossier www

Wamp

[Wamp] Custom www folder



0. Get current Apache version
  • Link: http://localhost/add_vhost.php
1. Update "C:\wamp64\bin\apache\apache2.4.39\conf\httpd.conf" file
Add or Edit (not remove!) to have following lines:
  • #DocumentRoot "${INSTALL_DIR}/www"
  • #<Directory "${INSTALL_DIR}/www/">
  • /!\ #No '\' but only '/'!

  • DocumentRoot "__YOUR_NEW_FOLDER__"
  • <Directory "__YOUR_NEW_FOLDER__/">
2. Update "C:\wamp64\www\index.php" file
Add or Edit (not remove!) to have following lines:
  • //$server_dir = "../";
  • /!\ #No '\' but only '/'!

  • $server_dir = "C:/wamp64/";
3. Update "C:\wamp64\bin\apache\apache2.4.39\conf\extra\httpd-vhosts.conf" file
Add or Edit (not remove !) to have following lines:
  • #DocumentRoot "${INSTALL_DIR}/www"
  • #<Directory "${INSTALL_DIR}/www/">
  • /!\ #No '\' but only '/'!

  • DocumentRoot "__YOUR_NEW_FOLDER__"
  • <Directory "__YOUR_NEW_FOLDER__/">


How to

[How to] Personnaliser le dossier www



0. Récupérer la version actuelle d'Apache
  • Lien : http://localhost/add_vhost.php
1. Mettre à jour le fichier "C:\wamp64\bin\apache\apache2.4.39\conf\httpd.conf" file
Ajouter ou modifier (pas de suppression !) pour avoir comme suit :
  • #DocumentRoot "${INSTALL_DIR}/www"
  • #<Directory "${INSTALL_DIR}/www/">
  • /!\ #Pas de '\' mais seulement des '/' !

  • DocumentRoot "__VOTRE_NOUVEAU_DOSSIER__"
  • <Directory "__VOTRE_NOUVEAU_DOSSIER__/">
2. Mettre à jour le fichier "C:\wamp64\www\index.php"
Ajouter ou modifier (pas de suppression !) pour avoir comme suit :
  • //$server_dir = "../";
  • /!\ #Pas de '\' mais seulement des '/' !

  • $server_dir = "C:/wamp64/";
3. Mettre à jour le fichier "C:\wamp64\bin\apache\apache2.4.39\conf\extra\httpd-vhosts.conf"
Ajouter ou modifier (pas de suppression !) pour avoir comme suit :
  • #DocumentRoot "${INSTALL_DIR}/www"
  • #<Directory "${INSTALL_DIR}/www/">
  • /!\ #Pas de '\' mais seulement des '/' !

  • DocumentRoot "__VOTRE_NOUVEAU_DOSSIER__"
  • <Directory "__VOTRE_NOUVEAU_DOSSIER__/">